package com.wobangkj.common.repository;

import com.wobangkj.common.model.crud.Circle;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CircleRepository extends JpaRepository<Circle, Long> {
    @Query(nativeQuery = true, value="select * from  circle  where circle_name like CONCAT('%',:circle_name,'%') ")
    List<Circle> findByNameLike(String circle_name);
}
